package by.semerikov.converter.tostring;

import java.util.Map;

public class StatisticByHourToStringFormater {
	
	public String convert(Map<Integer,Integer> map) {
		StringBuilder result = new StringBuilder();
		for (Integer i = 0; i < 24; i++) {
				result.append(i.toString());
				result.append(" - ");
				result.append(map.get(i).toString());
				result.append("\n\r");
		}
		return result.toString();
	}
}
